<div class="row justify-content-center">
  <div class="col-md-8 col-lg-6">
    <div class="card mx-4">
      <div class="card-body p-4">
        <h5 class="card-title">
          <%= t(".title") %>
        </h5>

        <%= form_with(model: resource, as: resource_name, url: invitation_path(resource_name), html: {method: :put}, local: true) do |f| %>
          <%= f.hidden_field :invitation_token, readonly: true %>

          <div class="form-group">
            <%= f.label :password, t(".password") %>
            <%= f.password_field :password, id: "user_password", autocomplete: "new-password", required: "required", class: "form-control", class_for_error: "is-invalid" %>
            <%= f.error_message :password, class: "invalid-feedback" %>
          </div>

          <div class="form-group">
            <%= f.label :password_confirmation, t(".confirm_password") %>
            <%= f.password_field :password_confirmation, id: "user_password_confirmation", autocomplete: "new-password", required: "required", class: "form-control", class_for_error: "is-invalid" %>
            <%= f.error_message :password_confirmation, class: "invalid-feedback" %>
          </div>

          <%= f.submit t(".submit"), class: "btn btn-block btn-primary" %>
        <% end %>
      </div>
    </div>
  </div>
</div>
